import 'package:flutter_jojo_test/common/base/base_resp.dart';
import 'package:get/get.dart';


class BaseController extends GetxController {
  var exception = ApiException(0, "").obs;

  void check(BaseResp resp, Function(Map<String, dynamic>) function) {
    try {
      exception.value = ApiException(0, "");
      function(resp.dataConvert().data);
    } catch (e) {
      exception.value = e as ApiException;
    }
  }
}
